package com.jic.member.service;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.member.entity.DisCommissionInfo;
import com.jic.member.request.DistributionRestRequest;
import com.jic.member.response.DistributionOrderRestResponse;
import org.springframework.web.bind.annotation.RequestBody;

import java.math.BigDecimal;
import java.util.List;

/**
* 佣金明细
* @author :
* @email :
* @since : 2020-10-03 14:56:08
* @version : v1.0.0
*/
public interface DisCommissionInfoService {

    long insert(DisCommissionInfo commissionInfo);

    long delete(Long id);

    long update(DisCommissionInfo commissionInfo);

    DisCommissionInfo queryByPrimaryKey(Long id);

    List<DisCommissionInfo> query(DisCommissionInfo commissionInfo);

    PageResult<DisCommissionInfo> queryPage(DisCommissionInfo commissionInfo, Page pageQuery);

    BigDecimal getCommissionCount(DisCommissionInfo commissionInfo);

    RestResult<PageResult<DistributionOrderRestResponse>> getDistributionOrderListPage(DistributionRestRequest resquest);

}
